package com.li.service;

import com.li.domain.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService extends IService<Admin>{


    Admin login(String username, String password);

    List<Admin> listPage(Admin admin, Integer page, Integer limit);

    Integer listPageCount(Admin admin);

    void updateAdmin(Admin admin);

    void addAdmin(Admin admin);

    void delAdmin(Admin admin);

    String uploadAvatar(MultipartFile uploadFile, HttpServletRequest req);

    Admin editAdmin(Integer id);
}
